import Mock from "mockjs"


Mock.mock("/api/user/login",{
  code: 20000,
  data: "token"
})

Mock.mock("/api/user/info", {
  code: 20000,
  data: {
    introduction: 'I am a super administrator',
    avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
    nickname: 'Super Admin',
    name: 'Super Admin'
  }
})


Mock.mock("/api/permission/menu-list", {
  "code": 20000,
  "message": "菜单列表获取成功",
  "data": [
    {
      "id": 1,
      "parentId": 0,
      "title": "个人中心",
      "icon": "user",
      "name": "PersonalCenter",
      "path": "/",
      "type": 1,
      "permission": "",
      "sort": 0,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "/personal",
      "component": "Layout"
    },
    {
      "id": 2,
      "parentId": 1,
      "title": "工作台",
      "icon": "",
      "name": "Personal",
      "path": "/personal",
      "type": 1,
      "permission": "",
      "sort": 1,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "",
      "component": "PersonalComponent"
    },
    {
      "id": 3,
      "parentId": 1,
      "title": "技能点",
      "icon": "",
      "name": "Skill",
      "path": "/skill",
      "type": 1,
      "permission": "",
      "sort": 2,
      "hidden": 1,
      "alwaysShow": 0,
      "redirect": "",
      "component": "SkillListComponent"
    },
    {
      "id": 4,
      "parentId": 1,
      "title": "个人信息",
      "icon": "",
      "name": "PersonalInfo",
      "path": "/info",
      "type": 1,
      "permission": "",
      "sort": 3,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "",
      "component": "PersonalInfoComponent"
    },
    {
      "id": 5,
      "parentId": 1,
      "title": "修改资料",
      "icon": "",
      "name": "PersonalUpdate",
      "path": "/update",
      "type": 1,
      "permission": "",
      "sort": 4,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "",
      "component": "PersonalUpdateComponent"
    },
    {
      "id": 6,
      "parentId": 0,
      "title": "文章中心",
      "icon": "form",
      "name": "ArticleCenter",
      "path": "/article",
      "type": 1,
      "permission": "",
      "sort": 5,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "/writer",
      "component": "Layout"
    },
    {
      "id": 7,
      "parentId": 6,
      "title": "编写文章",
      "icon": "",
      "name": "WriteArticle",
      "path": "/writer",
      "type": 1,
      "permission": "",
      "sort": 6,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "",
      "component": "WriteArticleComponent"
    },
    {
      "id": 8,
      "parentId": 6,
      "title": "管理文章",
      "icon": "",
      "name": "ArticleList",
      "path": "/manage",
      "type": 1,
      "permission": "",
      "sort": 7,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "",
      "component": "ArticleListComponent"
    },
    {
      "id": 9,
      "parentId": 6,
      "title": "管理标签",
      "icon": "",
      "name": "TagList",
      "path": "/tag",
      "type": 1,
      "permission": "",
      "sort": 8,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "",
      "component": "TagListComponent"
    },
    {
      "id": 10,
      "parentId": 0,
      "title": "管理中心",
      "icon": "example",
      "name": "Example",
      "path": "/management",
      "type": 1,
      "permission": "",
      "sort": 9,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "/user",
      "component": "Layout"
    },
    {
      "id": 30,
      "parentId": 0,
      "title": "数据源监控",
      "icon": "fa-eye",
      "name": "druid/index.html",
      "path": null,
      "type": 1,
      "permission": "sys:druid:query",
      "sort": 9,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": null,
      "component": null
    },
    {
      "id": 11,
      "parentId": 10,
      "title": "用户管理",
      "icon": "table",
      "name": "UserManage",
      "path": "/user",
      "type": 1,
      "permission": "",
      "sort": 10,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "",
      "component": "UserListComponent"
    },
    {
      "id": 31,
      "parentId": 0,
      "title": "接口swagger",
      "icon": "fa-file-pdf-o",
      "name": "swagger-ui.html",
      "path": null,
      "type": 1,
      "permission": "",
      "sort": 10,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": null,
      "component": null
    },
    {
      "id": 12,
      "parentId": 10,
      "title": "角色管理",
      "icon": "tree",
      "name": "RoleManage",
      "path": "/role",
      "type": 1,
      "permission": "",
      "sort": 11,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "",
      "component": "RoleListComponent"
    },
    {
      "id": 32,
      "parentId": 0,
      "title": "代码生成",
      "icon": "fa-wrench",
      "name": "/view/get?url=generate/edit",
      "path": null,
      "type": 1,
      "permission": "generate:edit",
      "sort": 11,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": null,
      "component": null
    },
    {
      "id": 13,
      "parentId": 10,
      "title": "菜单管理",
      "icon": "tree-table",
      "name": "MenuManage",
      "path": "/menu",
      "type": 1,
      "permission": "",
      "sort": 12,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": "",
      "component": "MenuListComponent"
    },
    {
      "id": 33,
      "parentId": 0,
      "title": "日志查询",
      "icon": "fa-reorder",
      "name": "/view/get?url=log/log-list",
      "path": null,
      "type": 1,
      "permission": "sys:log:query",
      "sort": 13,
      "hidden": 0,
      "alwaysShow": 0,
      "redirect": null,
      "component": null
    }
  ]
})
